package com.horsen.service.user.model.BO;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单导出BO
 *
 * @author Horsen
 */
@Data
@ApiModel("订单导出BO")
@ContentRowHeight(15)
@HeadRowHeight(20)
public class OrderOutputBO {

    @ColumnWidth(20)
    @ExcelProperty("订单号")
    private String orderNo;

    @ColumnWidth(20)
    @ExcelProperty("课程ID")
    private String courseId;

    @ColumnWidth(30)
    @ExcelProperty("课程名称")
    private String courseTitle;

    @ColumnWidth(20)
    @ExcelProperty("讲师ID")
    private String teacherId;

    @ColumnWidth(15)
    @ExcelProperty("讲师名称")
    private String teacherName;

    @ColumnWidth(20)
    @ExcelProperty("会员ID")
    private String memberId;

    @ColumnWidth(15)
    @ExcelProperty("会员名称")
    private String name;

    @ColumnWidth(15)
    @ExcelProperty("会员手机")
    private String phone;

    @ColumnWidth(15)
    @ExcelProperty("订单金额(元)")
    private BigDecimal totalFee;

    @ColumnWidth(25)
    @ExcelProperty("下单时间")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @JsonFormat(pattern = "yyyy.MM.dd HH:mm:ss")
    private Date gmtCreate;
}
